package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.UserMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMemberMapper extends BaseMapper<UserMember> {

    @Select("select name from user_member where user_id=#{userId}")
    public String getName(Long userId);

    @Select("select identity from user_member where user_id = #{userId}")
    public int getIdentity(Long userId);

}
